import {$get,$post,$delet,$put} from '@/utils/request.js'
// 返回角色列表
export const $list = async ()=>{
    let ret = await $post('/hotel/select',{
      "id": "",
      "hotelName": "",
      "city": "",
      "starRating": 0,
      "description": "",
      "imageUrl": "",
      "page": 1,
      "size": 10
    })
    return ret
  }
  // 添加角色
  export const $add = async (params)=>{
    let ret = await $post('/hotel/add',params)
    return ret
  }
  // 修改角色
  export const $update = async (params)=>{
    let ret = await $put('/hotel/update',params)
    return ret
  }
  // 删除角色
  export const $delete = async (params)=>{
    let ret = await $delet("/hotel/delete",params)
    return ret
  }
  // 获取一个角色
  export const $getOne = async (params) => {
    let ret = await $post('/hotel/select',params)
    return ret
  }